#ifndef    __APP_GPIO_H_
#define    __APP_GPIO_H_

#include "config.h"

//#define    SEVEN_POSITIVE   1

// 数码管序列
sbit p_a_dig1 = P2^3;
sbit p_a_dig2 = P2^4;
sbit p_a_dig3 = P2^5;
sbit p_a_dig4 = P2^2;

sbit p_b_dig1 = P1^4;
sbit p_b_dig2 = P1^5;
sbit p_b_dig3 = P1^6;
sbit p_b_dig4 = P1^7;



sbit p_A_part   =P3^7;
sbit p_B_part   =P2^1;
sbit p_C_part   =P3^5;
sbit p_D_part   =P3^3;
sbit p_E_part   =P3^2;
sbit p_F_part   =P2^0;
sbit p_G_part   =P3^6;

sbit p_DP_part   =P3^4;
 
void scan_num();
void adc_convert();
#endif